ShortPixel\Controller\Optimizer\OptimizeAiController C

Total Complexity 110
Dependencies 10
Dependents 3
Total lines 921
Lines of code 627
Logical lines of code 330
Comment lines 81
Methods 26
Properties 0

Methods 26

Method Rating Maintainability Complexity Lines of code
replaceFiles()
A
39 10 68
enqueueItem()
A
42 9 59
getAltData()
A
43 9 46
getPartQuestion()
A
45 9 42
replaceMetaData()
A
52 10 24
getPageQuestion()
A
50 9 29
handleAPIResult()
A
46 7 41
parseQuestion()
S
41 4 59
getRequestJSON()
S
48 5 37
handleReplace()
S
50 5 29
formatResultData()
S
58 5 16
HandleSuccess()
S
50 3 30
replaceImageAttributes()
S
57 2 16
sendToProcessing()
S
59 2 15
isAiEnabled()
S
63 3 10
isAutoAiEnabled()
S
64 3 10
processTextResult()
S
66 3 8
checkItem()
S
60 2 13
getAISettings()
S
52 1 24
HandleItemError()
S
69 2 8
isSupported()
S
68 2 8
undoAltData()
S
61 1 13
__construct()
S
73 1 5
fetchImageMatches()
S
72 1 5
parseJSONForQItem()
S
70 1 6
parseQuestionForQItem()
S
71 1 6